package com.edz.from0507to0513apk.Accountsave.frag;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.edz.from0507to0513apk.R;
import com.edz.from0507to0513apk.Util.SpUtils;

import butterknife.BindView;
import butterknife.ButterKnife;

public class MainFrag extends Fragment {

    private View view_main;
    private String str_user = null;

    @BindView(R.id.tv_user_phone)
    TextView tv_user_phone;

    public MainFrag() {
        // Required empty public constructor
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        view_main = inflater.inflate(R.layout.fragment_main, container, false);
        ButterKnife.bind(this,view_main);
        initView();
        return view_main;
    }

    private void initView() {
        str_user = SpUtils.getStringValue(getActivity(),"phone","");
        tv_user_phone.setText(str_user);
    }

}
